﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SBattleFieldPlayerScores extends IMessageBase
    {
        public var isFinal:Boolean;
        public var forceScore:SBattleFieldScore;
        public var scoreForce1:Array;
        public var scoreForce2:Array;
        public var scoreForce3:Array;
        public const _type:int = 5055;
        public static var _regist:SBattleFieldPlayerScores = new SBattleFieldPlayerScores(true);

        public function SBattleFieldPlayerScores(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SBattleFieldPlayerScores();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isFinal);
            this.forceScore.__write(param1);
            SeqPlayerScoreHelper.write(param1, this.scoreForce1);
            SeqPlayerScoreHelper.write(param1, this.scoreForce2);
            SeqPlayerScoreHelper.write(param1, this.scoreForce3);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isFinal = param1.readBool();
            this.forceScore = new SBattleFieldScore();
            this.forceScore.__read(param1);
            this.scoreForce1 = SeqPlayerScoreHelper.read(param1);
            this.scoreForce2 = SeqPlayerScoreHelper.read(param1);
            this.scoreForce3 = SeqPlayerScoreHelper.read(param1);
            return;
        }// end function

    }
}
